/*
 * Copyright (c) 2010, Jan Pastor. All Rights Reserved.
 */

package sk.jp.jitag.vo;

/**
 * Statistic result of repository re-scan process.
 * Contains information about count of new, updated and deleted files.
 */
public class RepositoryScanStatistics {

    private int newCount;
    private int updatedCount;
    private int deletedCount;
    private int nochangeCount;

    public RepositoryScanStatistics(int newCount, int updatedCount, int deletedCount,
                                    int nochangeCount) {
        this.newCount = newCount;
        this.updatedCount = updatedCount;
        this.deletedCount = deletedCount;
        this.nochangeCount = nochangeCount;
    }

    public int getNewCount() {
        return newCount;
    }

    public int getUpdatedCount() {
        return updatedCount;
    }

    public int getDeletedCount() {
        return deletedCount;
    }

    public int getNochangeCount() {
        return nochangeCount;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("RepositoryScanStatistics");
        sb.append("{newCount=").append(newCount);
        sb.append(", updatedCount=").append(updatedCount);
        sb.append(", deletedCount=").append(deletedCount);
        sb.append(", nochangeCount=").append(nochangeCount);
        sb.append('}');
        return sb.toString();
    }
}
